﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Cgd.Shell.Data;
using Cgd.Shell.Utilities;

public partial class ContentList : System.Web.UI.Page
{
	CgdColumn _column;

	protected void Page_Init(object sender, EventArgs e)
	{
		_column = CgdColumn.GetByName(Request["column"]);

		if (_column == null)
		{
			Response.StatusCode = 404;
			Response.End();
			return;
		}
	}

	protected void Page_Load(object sender, EventArgs e)
	{
		BindData();
	}

	private void BindData()
	{
		lblTitle.Text = _column.Title;
		lblColumnId.Text = _column.Value.ToString();
	}

	protected string GetRssUrl()
	{
		return UrlUtility.GetColumnRssUrl(_column.Name);
	}
}
